package com.zy.uml;
/**
@Author Gong
@Description  动物
@dATE 2021/11/20 21:34
**/
public class Animal {
    //特性
    private int life = 100;//生命值
    //操作
    /**
     * @Author GongXL
     * @Description  新陈代谢 需要氧气和水
     * @Date 21:35 2021/11/20
     * @Param [com.zy.uml.Oxygen, com.zy.uml.Water]
     * @return void
     **/
    public void metabolism(Oxygen oxygen,Water water){
        System.out.println("新陈代谢");
    }
    /**
     * @Author GongXL
     * @Description  繁殖
     * @Date 21:36 2021/11/20
     * @Param []
     * @return void
     **/
    public void   breed(){
        System.out.println("繁殖");
    }
}
